home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / DesktopAnimBase.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  12KB  |  321 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: DesktopAnimBase.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_DesktopAnimBase_h
  11. #define SOM_DesktopAnimBase_h
  12.  
  13.  
  14. /*
  15.  * Passthru lines: File: "C.h", "before"
  16.  */
  17. #include <Collections.h>
  18. #include <DesktopAnimation.h>
  19. #include <Displays.h>
  20. #include <MemAllocators.h>
  21. #include <Types.h>
  22.  
  23. #include <som.h>
  24.  
  25. /*
  26.  * -- This emitter treats Method Tokens as Thunks by default.
  27.  * -- Use the sc modifier "nothunks" to change this default
  28.  */
  29. #undef somresolve_
  30. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  31.  
  32. /*
  33.  * Define the class name as an object type
  34.  */
  35. #ifndef DesktopAnimBase
  36. #define DesktopAnimBase SOMObject
  37. #endif
  38. #include <somobj.h>
  39.  
  40. /*
  41.  * Start of user-defined types:
  42.  */
  43. #ifndef SOMClass
  44.     #define SOMClass SOMObject
  45. #endif /* SOMClass */
  46. #ifndef SOMObject
  47.     #define SOMObject SOMObject
  48. #endif /* SOMObject */
  49. #ifndef Repository
  50.     #define Repository SOMObject
  51. #endif /* Repository */
  52.  
  53. /*
  54.  * End of user-defined types.
  55.  */
  56.  
  57. #define DesktopAnimBase_MajorVersion 0
  58. #define DesktopAnimBase_MinorVersion 0
  59.  
  60. /*
  61.  * External name shortening if required
  62.  */
  63. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  64. #define DesktopAnimBaseClassData d
  65. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  66. /*--------------Migration------------*/
  67.  
  68. #ifdef OLDIBMSOMAPISUPPORT
  69. #define DesktopAnimBase_classObj somNewClassReference(DesktopAnimBase)
  70. #define _DesktopAnimBase DesktopAnimBase_classObj
  71. #define DesktopAnimBaseCClassData DesktopAnimBaseClassData
  72. #define DesktopAnimBaseNewClass(major,minor) somNewVersionedClassReference(DesktopAnimBase,major,minor)
  73. #endif
  74.  
  75. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  76. #define DesktopAnimBaseMetaClass SOMClass
  77.  
  78. #if PRAGMA_ALIGN_SUPPORTED
  79. #  pragma options align=power
  80. #endif
  81.  
  82. /*
  83.  * Declare the class data structure
  84.  */
  85. SOMEXTERN struct DesktopAnimBaseClassDataStructure {
  86. #ifdef OLDIBMSOMAPISUPPORT
  87.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  88. #else
  89.     long zero;
  90. #endif
  91.     somStaticClassInfo *sci;
  92.     somDToken        instanceDataToken;
  93.     long reserved [3];
  94.     somMToken InitializeBase;
  95.     somMToken CloseBase;
  96.     somMToken GetDesktopAnimCollectionItem;
  97.     somMToken ReadDesktopAnimCollection;
  98.     somMToken AddDesktopAnimCollectionItem;
  99.     somMToken WriteDesktopAnimCollection;
  100.     somMToken GetDesktopAnimCollectionItemData;
  101.     somMToken RemoveDesktopAnimCollectionItem;
  102.     somMToken GetModuleDescription;
  103. } SOMDLINK DesktopAnimBaseClassData;
  104.  
  105. #if PRAGMA_ALIGN_SUPPORTED
  106. #  pragma options align=reset
  107. #endif
  108.  
  109. #if !defined(DesktopAnimBase_Class_Source) && !defined(SOM_Module_desktopanimbase_Source)
  110. #if PRAGMA_IMPORT_SUPPORTED
  111. #pragma import list DesktopAnimBaseClassData
  112. #endif
  113. #endif
  114.  
  115.  
  116. /*
  117.  * New macro for DesktopAnimBase
  118.  */
  119. #define DesktopAnimBaseNew() somNewObject(DesktopAnimBase)
  120.  
  121. /*
  122.  * New Method: InitializeBase
  123.  */
  124. typedef OSStatus   (SOMLINK *somTD_DesktopAnimBase_InitializeBase)(DesktopAnimBase *somSelf, Environment *ev,
  125.         AVIDType prefsDisplayID,
  126.         DesktopAnimModuleDescRef moduleDescRef,
  127.         DesktopAnimModuleInfo* moduleInfo);
  128. #define somMD_DesktopAnimBase_InitializeBase "::DesktopAnimBase::InitializeBase"
  129. #define DesktopAnimBase_InitializeBase(somSelf,ev,prefsDisplayID,moduleDescRef,moduleInfo) \
  130.     (SOM_Resolve(somSelf, DesktopAnimBase, InitializeBase) \
  131.     (somSelf,ev,prefsDisplayID,moduleDescRef,moduleInfo))
  132. #ifndef SOMGD_InitializeBase
  133.     #if defined _InitializeBase || defined __InitializeBase
  134.         #undef _InitializeBase
  135.         #undef __InitializeBase
  136.         #define SOMGD_InitializeBase 1
  137.     #else
  138.         #define _InitializeBase DesktopAnimBase_InitializeBase
  139.     #endif /* _InitializeBase */
  140. #endif /* SOMGD_InitializeBase */
  141.  
  142. /*
  143.  * New Method: CloseBase
  144.  */
  145. typedef OSStatus   (SOMLINK *somTD_DesktopAnimBase_CloseBase)(DesktopAnimBase *somSelf, Environment *ev);
  146. #define somMD_DesktopAnimBase_CloseBase "::DesktopAnimBase::CloseBase"
  147. #define DesktopAnimBase_CloseBase(somSelf,ev) \
  148.     (SOM_Resolve(somSelf, DesktopAnimBase, CloseBase) \
  149.     (somSelf,ev))
  150. #ifndef SOMGD_CloseBase
  151.     #if defined _CloseBase || defined __CloseBase
  152.         #undef _CloseBase
  153.         #undef __CloseBase
  154.         #define SOMGD_CloseBase 1
  155.     #else
  156.         #define _CloseBase DesktopAnimBase_CloseBase
  157.     #endif /* _CloseBase */
  158. #endif /* SOMGD_CloseBase */
  159.  
  160. /*
  161.  * New Method: AddDesktopAnimCollectionItem
  162.  */
  163. typedef OSStatus   (SOMLINK *somTD_DesktopAnimBase_AddDesktopAnimCollectionItem)(DesktopAnimBase *somSelf, Environment *ev,
  164.         CollectionTag tag,
  165.         UInt32 itemSize,
  166.         void* itemData);
  167. #define somMD_DesktopAnimBase_AddDesktopAnimCollectionItem "::DesktopAnimBase::AddDesktopAnimCollectionItem"
  168. #define DesktopAnimBase_AddDesktopAnimCollectionItem(somSelf,ev,tag,itemSize,itemData) \
  169.     (SOM_Resolve(somSelf, DesktopAnimBase, AddDesktopAnimCollectionItem) \
  170.     (somSelf,ev,tag,itemSize,itemData))
  171. #ifndef SOMGD_AddDesktopAnimCollectionItem
  172.     #if defined _AddDesktopAnimCollectionItem || defined __AddDesktopAnimCollectionItem
  173.         #undef _AddDesktopAnimCollectionItem
  174.         #undef __AddDesktopAnimCollectionItem
  175.         #define SOMGD_AddDesktopAnimCollectionItem 1
  176.     #else
  177.         #define _AddDesktopAnimCollectionItem DesktopAnimBase_AddDesktopAnimCollectionItem
  178.     #endif /* _AddDesktopAnimCollectionItem */
  179. #endif /* SOMGD_AddDesktopAnimCollectionItem */
  180.  
  181. /*
  182.  * New Method: GetDesktopAnimCollectionItem
  183.  */
  184. typedef OSStatus   (SOMLINK *somTD_DesktopAnimBase_GetDesktopAnimCollectionItem)(DesktopAnimBase *somSelf, Environment *ev,
  185.         CollectionTag tag,
  186.         UInt32* itemSize,
  187.         void* itemData);
  188. #define somMD_DesktopAnimBase_GetDesktopAnimCollectionItem "::DesktopAnimBase::GetDesktopAnimCollectionItem"
  189. #define DesktopAnimBase_GetDesktopAnimCollectionItem(somSelf,ev,tag,itemSize,itemData) \
  190.     (SOM_Resolve(somSelf, DesktopAnimBase, GetDesktopAnimCollectionItem) \
  191.     (somSelf,ev,tag,itemSize,itemData))
  192. #ifndef SOMGD_GetDesktopAnimCollectionItem
  193.     #if defined _GetDesktopAnimCollectionItem || defined __GetDesktopAnimCollectionItem
  194.         #undef _GetDesktopAnimCollectionItem
  195.         #undef __GetDesktopAnimCollectionItem
  196.         #define SOMGD_GetDesktopAnimCollectionItem 1
  197.     #else
  198.         #define _GetDesktopAnimCollectionItem DesktopAnimBase_GetDesktopAnimCollectionItem
  199.     #endif /* _GetDesktopAnimCollectionItem */
  200. #endif /* SOMGD_GetDesktopAnimCollectionItem */
  201.  
  202. /*
  203.  * New Method: GetDesktopAnimCollectionItemData
  204.  */
  205. typedef OSStatus   (SOMLINK *somTD_DesktopAnimBase_GetDesktopAnimCollectionItemData)(DesktopAnimBase *somSelf, Environment *ev,
  206.         CollectionTag tag,
  207.         MemAllocatorRef memAllocator,
  208.         UInt32* itemSize,
  209.         void** itemData);
  210. #define somMD_DesktopAnimBase_GetDesktopAnimCollectionItemData "::DesktopAnimBase::GetDesktopAnimCollectionItemData"
  211. #define DesktopAnimBase_GetDesktopAnimCollectionItemData(somSelf,ev,tag,memAllocator,itemSize,itemData) \
  212.     (SOM_Resolve(somSelf, DesktopAnimBase, GetDesktopAnimCollectionItemData) \
  213.     (somSelf,ev,tag,memAllocator,itemSize,itemData))
  214. #ifndef SOMGD_GetDesktopAnimCollectionItemData
  215.     #if defined _GetDesktopAnimCollectionItemData || defined __GetDesktopAnimCollectionItemData
  216.         #undef _GetDesktopAnimCollectionItemData
  217.         #undef __GetDesktopAnimCollectionItemData
  218.         #define SOMGD_GetDesktopAnimCollectionItemData 1
  219.     #else
  220.         #define _GetDesktopAnimCollectionItemData DesktopAnimBase_GetDesktopAnimCollectionItemData
  221.     #endif /* _GetDesktopAnimCollectionItemData */
  222. #endif /* SOMGD_GetDesktopAnimCollectionItemData */
  223.  
  224. /*
  225.  * New Method: RemoveDesktopAnimCollectionItem
  226.  */
  227. typedef OSStatus   (SOMLINK *somTD_DesktopAnimBase_RemoveDesktopAnimCollectionItem)(DesktopAnimBase *somSelf, Environment *ev,
  228.         CollectionTag tag);
  229. #define somMD_DesktopAnimBase_RemoveDesktopAnimCollectionItem "::DesktopAnimBase::RemoveDesktopAnimCollectionItem"
  230. #define DesktopAnimBase_RemoveDesktopAnimCollectionItem(somSelf,ev,tag) \
  231.     (SOM_Resolve(somSelf, DesktopAnimBase, RemoveDesktopAnimCollectionItem) \
  232.     (somSelf,ev,tag))
  233. #ifndef SOMGD_RemoveDesktopAnimCollectionItem
  234.     #if defined _RemoveDesktopAnimCollectionItem || defined __RemoveDesktopAnimCollectionItem
  235.         #undef _RemoveDesktopAnimCollectionItem
  236.         #undef __RemoveDesktopAnimCollectionItem
  237.         #define SOMGD_RemoveDesktopAnimCollectionItem 1
  238.     #else
  239.         #define _RemoveDesktopAnimCollectionItem DesktopAnimBase_RemoveDesktopAnimCollectionItem
  240.     #endif /* _RemoveDesktopAnimCollectionItem */
  241. #endif /* SOMGD_RemoveDesktopAnimCollectionItem */
  242.  
  243. /*
  244.  * New Method: ReadDesktopAnimCollection
  245.  */
  246. typedef OSStatus   (SOMLINK *somTD_DesktopAnimBase_ReadDesktopAnimCollection)(DesktopAnimBase *somSelf, Environment *ev);
  247. #define somMD_DesktopAnimBase_ReadDesktopAnimCollection "::DesktopAnimBase::ReadDesktopAnimCollection"
  248. #define DesktopAnimBase_ReadDesktopAnimCollection(somSelf,ev) \
  249.     (SOM_Resolve(somSelf, DesktopAnimBase, ReadDesktopAnimCollection) \
  250.     (somSelf,ev))
  251. #ifndef SOMGD_ReadDesktopAnimCollection
  252.     #if defined _ReadDesktopAnimCollection || defined __ReadDesktopAnimCollection
  253.         #undef _ReadDesktopAnimCollection
  254.         #undef __ReadDesktopAnimCollection
  255.         #define SOMGD_ReadDesktopAnimCollection 1
  256.     #else
  257.         #define _ReadDesktopAnimCollection DesktopAnimBase_ReadDesktopAnimCollection
  258.     #endif /* _ReadDesktopAnimCollection */
  259. #endif /* SOMGD_ReadDesktopAnimCollection */
  260.  
  261. /*
  262.  * New Method: WriteDesktopAnimCollection
  263.  */
  264. typedef OSStatus   (SOMLINK *somTD_DesktopAnimBase_WriteDesktopAnimCollection)(DesktopAnimBase *somSelf, Environment *ev);
  265. #define somMD_DesktopAnimBase_WriteDesktopAnimCollection "::DesktopAnimBase::WriteDesktopAnimCollection"
  266. #define DesktopAnimBase_WriteDesktopAnimCollection(somSelf,ev) \
  267.     (SOM_Resolve(somSelf, DesktopAnimBase, WriteDesktopAnimCollection) \
  268.     (somSelf,ev))
  269. #ifndef SOMGD_WriteDesktopAnimCollection
  270.     #if defined _WriteDesktopAnimCollection || defined __WriteDesktopAnimCollection
  271.         #undef _WriteDesktopAnimCollection
  272.         #undef __WriteDesktopAnimCollection
  273.         #define SOMGD_WriteDesktopAnimCollection 1
  274.     #else
  275.         #define _WriteDesktopAnimCollection DesktopAnimBase_WriteDesktopAnimCollection
  276.     #endif /* _WriteDesktopAnimCollection */
  277. #endif /* SOMGD_WriteDesktopAnimCollection */
  278.  
  279. /*
  280.  * New Method: GetModuleDescription
  281.  */
  282. typedef OSStatus   (SOMLINK *somTD_DesktopAnimBase_GetModuleDescription)(DesktopAnimBase *somSelf, Environment *ev,
  283.         DesktopAnimModuleDescRef* moduleDescRef);
  284. #define somMD_DesktopAnimBase_GetModuleDescription "::DesktopAnimBase::GetModuleDescription"
  285. #define DesktopAnimBase_GetModuleDescription(somSelf,ev,moduleDescRef) \
  286.     (SOM_Resolve(somSelf, DesktopAnimBase, GetModuleDescription) \
  287.     (somSelf,ev,moduleDescRef))
  288. #ifndef SOMGD_GetModuleDescription
  289.     #if defined _GetModuleDescription || defined __GetModuleDescription
  290.         #undef _GetModuleDescription
  291.         #undef __GetModuleDescription
  292.         #define SOMGD_GetModuleDescription 1
  293.     #else
  294.         #define _GetModuleDescription DesktopAnimBase_GetModuleDescription
  295.     #endif /* _GetModuleDescription */
  296. #endif /* SOMGD_GetModuleDescription */
  297. #ifndef SOM_DONT_USE_INHERITED_MACROS
  298. #define DesktopAnimBase_somInit SOMObject_somInit
  299. #define DesktopAnimBase_somUninit SOMObject_somUninit
  300. #define DesktopAnimBase_somDuplicateReference SOMObject_somDuplicateReference
  301. #define DesktopAnimBase_somCompareReference SOMObject_somCompareReference
  302. #define DesktopAnimBase_somRelease SOMObject_somRelease
  303. #define DesktopAnimBase_somFree SOMObject_somFree
  304. #define DesktopAnimBase_somCanDelete SOMObject_somCanDelete
  305. #define DesktopAnimBase_somGetClass SOMObject_somGetClass
  306. #define DesktopAnimBase_somGetClassName SOMObject_somGetClassName
  307. #define DesktopAnimBase_somGetSize SOMObject_somGetSize
  308. #define DesktopAnimBase_somIsA SOMObject_somIsA
  309. #define DesktopAnimBase_somRespondsTo SOMObject_somRespondsTo
  310. #define DesktopAnimBase_somIsInstanceOf SOMObject_somIsInstanceOf
  311. #define DesktopAnimBase_somDispatch SOMObject_somDispatch
  312. #define DesktopAnimBase_somClassDispatch SOMObject_somClassDispatch
  313. #define DesktopAnimBase_somCastObj SOMObject_somCastObj
  314. #define DesktopAnimBase_somResetObj SOMObject_somResetObj
  315. #define DesktopAnimBase_somPrintSelf SOMObject_somPrintSelf
  316. #define DesktopAnimBase_somDumpSelf SOMObject_somDumpSelf
  317. #define DesktopAnimBase_somDumpSelfInt SOMObject_somDumpSelfInt
  318. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  319.  
  320. #endif       /* SOM_DesktopAnimBase_h */
  321.